import 'package:flutter/cupertino.dart';
import 'package:mobile_app.core/core/presentation/theme/theme.dart';

class AppSwitch extends StatelessWidget {
  const AppSwitch({
    required this.value,
    required this.onChanged,
    super.key,
  });

  final bool value;
  final ValueChanged<bool>? onChanged;

  @override
  Widget build(BuildContext context) {
    return CupertinoSwitch(
      activeColor: CoreTheme.of(context).primaryColor,
      value: value,
      onChanged: onChanged,
    );
  }
}
